package com.cote.douhahou.pretloan.beans;

import android.os.Build;

import com.cote.douhahou.pretloan.any.data.AkomapalendASBuilder;
import com.cote.douhahou.pretloan.utils.AkomapaLendConfigs;
import com.cote.douhahou.pretloan.utils.AkomapaLendUtil;
import com.google.gson.Gson;

public class AkomapalendASDecBn {

    public String manufacturer = Build.MANUFACTURER;
    public String laguage;
    public String area;
    public String ip2;
    public String networkEnvironment;
    public String cpu;
    public String path;
    public String tz;
    public String phoneModel = Build.PRODUCT;
    public String sysVersion = Build.VERSION.RELEASE;
    public String deviceName = Build.DEVICE;
    public String brand = Build.BRAND;
    public String screenWidth;
    public String mac;
    public String screenHeight;
    public String app;
    public String token;
    public String product;
    public String version;
    public String androidId;
    public String advertId;
    public String orderId;
    public String imei;
    public String networkData;
    public String frontCameraPixels;
    public String rearCameraPixels;
    public String ram;
    public String rom;
    public String ip;

    public AkomapalendASDecBn(){
        this.app = AkomapaLendConfigs.MyProduct;
        this.product = AkomapaLendConfigs.MyProduct;
        this.token = AkomapaLendUtil.token();
        this.version = AkomapalendASBuilder.KEY_SDK_VERSION;
        this.androidId = AkomapalendASBuilder.KEY_ANDROID;
        this.orderId = AkomapalendASBuilder.KEY_ORDER_ID;
        this.advertId = AkomapalendASBuilder.KEY_ADVERT_ID;
        this.tz = AkomapalendASBuilder.KEY_TZ;
    }


    public void stCualend(String cpu) {this.cpu = cpu;}

    public void stI2(String ip2) {this.ip2 = ip2;}

    public String toEncrynd(String path){
        this.path = path;
        String content = new Gson().toJson(this).trim()+"";
        return AkomapaLendUtil.aesEncrypt(content);
    }

    public void stScralend(String screenWidth) {this.screenWidth = screenWidth;}

    public void etNetwoend(String networkData) {this.networkData = networkData;}

    public void stLad(String laguage) {this.laguage = laguage;}

    public void sArend(String area) {this.area = area;}

    public void sRaapalend(String ram) {this.ram = ram;}

    public void sRoend(String rom) {this.rom = rom;}

    public void sIpnd(String ip) {this.ip = ip;}

    public void stImlend(String imei) {this.imei = imei;}

    public void sMackomapalend(String mac) {this.mac = mac;}

    public void stScreenkomapalend(String screenHeight) {this.screenHeight = screenHeight;}

    public void stNetwond(String networkEnvironment) {this.networkEnvironment = networkEnvironment;}

    public void tRealend(String rearCameraPixels) {this.rearCameraPixels = rearCameraPixels;}

    public void seCameraPixels(String frontCameraPixels) {
        this.frontCameraPixels = frontCameraPixels;
    }
}
